home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / statseri.000 / statseri / statserial-1.1 / Makefile < prev    next >
Makefile  |  1994-12-17  |  633b  |  28 lines

  1. CC    = gcc
  2. LD    = gcc
  3.  
  4. # for debug
  5. #CFLAGS    = -Wall -g
  6. #LDFLAGS = -N
  7.  
  8. # for production code
  9. CFLAGS    = -Wall -O3 -fomit-frame-pointer
  10. LDFLAGS = -s -N
  11.  
  12. statserial:    statserial.o
  13.     $(LD) $(LDFLAGS) -o statserial statserial.o -lcurses
  14.  
  15. statserial.o: statserial.c
  16.     $(CC) $(CFLAGS) -c statserial.c
  17.  
  18. install: statserial
  19.     install -m 555 statserial /usr/local/bin/statserial
  20.     install -m 444 statserial.1 /usr/local/man/man1/statserial.1
  21.  
  22. clean:
  23.     $(RM) statserial statserial.o core *~
  24.  
  25. dist:    statserial.c Makefile statserial.1 README
  26.     $(RM) statserial statserial.o core statserial-1.1.tar.gz *~
  27.     cd .. ; tar -czvf statserial-1.1.tar.gz statserial-1.1
  28.